<template>
	<div class="rollback" @click="rollback">
		<van-image width="0.22rem" height="0.36rem" :src="require('../assets/imgs/arrowsLeftWhite.png')"></van-image>
	</div>
</template>

<script>
	export default {
		name: 'Rollback',
		props: {
			back: {
				type: Number,
				default: 1
			}
		},
		methods: {
			rollback() {
				this.$router.back(-this.back);
			}
		}
	}
</script>

<style scoped>
	.rollback {
		position: absolute;
		top: 0.2rem;
		left: 0.28rem;
	}
</style>
